package com.itheima.springboottlias.aspect;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

@Slf4j
@Component
@Aspect
public class LogAspect {
//    @Around("execution(* com.itheima.springboottlias.service.*Service.*(..))")

//    @Around("@annotation(com.itheima.springboottlias.anno.LogOperation)")

//    public Object add(ProceedingJoinPoint pjp) throws Throwable {
//        log.info("数据修改前");
//        Object result = pjp.proceed();
//        log.info("数据修改后");
//        return result;
//    }
}
